/*    */ package com.lmpop.trade.util;
/*    */ 
/*    */ import com.lmpop.frame.util.Config;
/*    */ import java.io.IOException;
/*    */ import java.io.PrintWriter;
/*    */ import javax.servlet.ServletException;
/*    */ import javax.servlet.http.HttpServlet;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ 
/*    */ public class FakeLinkImg extends HttpServlet
/*    */ {
/*    */   public void destroy()
/*    */   {
/* 22 */     super.destroy();
/*    */   }
/*    */ 
/*    */   public void doGet(HttpServletRequest request, HttpServletResponse response)
/*    */     throws ServletException, IOException
/*    */   {
/* 28 */     doPost(request, response);
/*    */   }
/*    */ 
/*    */   public void doPost(HttpServletRequest request, HttpServletResponse response)
/*    */     throws ServletException, IOException
/*    */   {
/* 35 */     response.setContentType("text/html");
/* 36 */     PrintWriter out = response.getWriter();
/* 37 */     String re_url = "";
/* 38 */     if (request.getHeader("referer") != null)
/*    */     {
/* 40 */       re_url = request.getHeader("referer").toString();
/*    */     }
/* 42 */     Config cg = new Config();
/* 43 */     String weburl = cg.getString("weburl");
/* 44 */     if ((re_url.equals("")) || (re_url.indexOf(weburl) == -1))
/*    */     {
/* 46 */       out.println("Img error");
/* 47 */       out.flush();
/* 48 */       out.close();
/*    */     }
/*    */   }
/*    */ 
/*    */   public void init()
/*    */     throws ServletException
/*    */   {
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.trade.util.FakeLinkImg
 * JD-Core Version:    0.6.0
 */